var listYear = $(".m2-manage-search-selector ul li");
var firstForm = document.forms[0];
$(listYear[0]).click(function () {
    status_nav(firstForm,0);
});
$(listYear[1]).click(function () {
    status_nav(firstForm,3);
});
$(listYear[2]).click(function () {
    status_nav(firstForm,4);
});

function status_nav(theForm,status) {
    theForm.status.value = status;
    theForm.submit();
}

function page_nav(theForm,currentPageNo) {
    theForm.currentPageNo.value = currentPageNo;
    theForm.submit();
}

function jump_to(theForm,jumpPageNo) {
    var regx = /^\d{1,}$/;
    if(!regx.test(jumpPageNo)){//非数字
        alert("请输入数字!");
        return;
    }
    var totalPageCount = document.getElementById("totalPageCount").value;
    if(jumpPageNo <= 0 || jumpPageNo > totalPageCount){//在首页和最后一页之间
        alert("请输入正确的页码!");
        return;
    }
    theForm.currentPageNo.value = jumpPageNo;
    theForm.submit();
}